package com.xjtu.chapter05.ex5_3;

/**
 * @author yjq
 * @version 1.0
 * @date 2021/8/16 17:17
 */
public class Laptop extends Computer {
    double thickness;//厚度
    double weight;//重量

    public double getThickness() {
        return thickness;
    }

    public double getWeight() {
        return weight;
    }
    @Override
    void ads() {
        System.out.println("You best choice!");
    }

    //重写从computer继承而来的四个OnlineShopping方法
    @Override
    public void addtoShoppingCart() {
        System.out.println("Laptop:Add");
    }

    @Override
    public void orderItem() {
        System.out.println("Laptop:order items");
    }

    @Override
    public void payment() {
        System.out.println("Laptop:pay");
    }

    @Override
    public void shipping() {
        System.out.println("Laptop:shipping");
    }
}
